<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>8.求整数1~100之间的累加值、但要求跳过所有个位数为3的数</title>
    <script>
        var getSum = 0;
        for (var i = 1; i <= 100; i++) {
            if ((i - 3) % 10 != 0) {
                getSum += i;
            }
        }
        console.log(getSum);
    </script>
</head>

<body>

</body>

</html>